<?php

namespace app\api\validate\user;

use taoser\Validate;

class LoginValidate extends Validate
{
    protected $rule = [
        'phone'    => 'require|mobile',
        'password' => 'require|max:10|min:6',
    ];

    protected $field = [
        'phone'    => '手机号',
        'password' => '密码',
    ];

    protected $scene = [
        'login' => ['phone', 'password'],
    ];
}